{include file="Main/menu" /}
<form method="post">
    <div class="panel admin-panel" style="background: #fff">
        <div class="panel-head"><strong>{:lang('currency')['list']}</strong></div>
        <div class="padding border-bottom">
            <script>
                //city 参数和回调
                var pid="{:input('get.pid')}";
                var cid="{:input('get.cid')}";
                var aid="{:input('get.aid')}";
                var selectc = true;
                var selecta = true;
                function select_p(){
                    return false;
                }
                function select_c(){
                    return false;
                }
                function select_a(){
                    location.href="?pid="+pid+"&cid="+cid+"&aid="+aid;
                }
            </script>
            {:lang('label')['select']}{:lang('currency')['city']}:{include file="public/city" /}
        </div>
        <table class="am-table am-table-striped am-table-hover table-main">
            <tr>
                
                <th width="70">真实姓名</th>
                <th width="90">真实头像</th>
                <th width="80">身份证号</th>
                <th width="90">手持身份证照片</th>
                <th width="90">身份证正面照</th>
                <th width="90">身份证背面照</th>
                <th width="90">驾照证照片</th>
                <th width="90">行驶证照片</th>
                <th width="90">车正面照片</th>
                <th width="80">支付宝账号</th>
                <th width="80">状态</th>
                <th width="100">{:lang('label')['handle']}</th>
                <th width="150">拒绝原因</th>
            </tr>
            {volist name="data" id="user"}
                <tr>
                    <td style="line-height:40px">{$user.true_name}</td>
                    <td style="line-height:40px"><img src="{$user.true_head}" height="50" /></td>
                    <td style="line-height:40px">{$user.idcard}</td>
                    <td style="line-height:40px"><a href="{$user.idcard_hand}" target="_blank"><img src="{$user.idcard_hand}" height="50" /></a></td>
                    <td style="line-height:40px"><a href="{$user.idcard_front}" target="_blank"><img src="{$user.idcard_front}" height="50" /></a></td>
                    <td style="line-height:40px"><a href="{$user.idcard_back}" target="_blank"><img src="{$user.idcard_back}" height="50" /></a></td>
                    <td style="line-height:40px"><a href="{$user.jiacard_front}" target="_blank"><img src="{$user.jiacard_front}" height="50" /></a></td>
                    <td style="line-height:40px"><a href="{$user.xingcard_front}" target="_blank"><img src="{$user.xingcard_front}" height="50" /></a></td>
                    <td style="line-height:40px"><a href="{$user.car_front}" target="_blank"><img src="{$user.car_front}" height="50" /></a></td>
                    
                    <td style="line-height:40px">{$user.ali_number}</td>
                    <td style="line-height:40px">{if $user.status == 1}<span style="color: orange">已通过</span>{elseif $user.status == 3}已拒绝{elseif $user.status == 2}待处理{elseif $user.status == 3}被撤销{/if}</td>
                    <td style="line-height:40px">
                        <a class="button border-blue button-little "{if $user.status != 2}disabled{/if} {if $user.status == 2}href="javascript:check_set('{$user.id}','{$user.uid}','1')"{/if}>通过</a>
                        <a class="button border-yellow button-little "{if $user.status != 2}disabled{/if} {if $user.status == 2}href="javascript:check_set('{$user.id}','{$user.uid}','3')"{/if}>拒绝</a>
                    </td>
                    <td style="line-height:40px">{$user.deny_cause}</td>
                </tr>
            {/volist}
        </table>
        {include file="public/pages" /}
    </div>
</form>
{include file="Main/menu_footer" /}
<script>
    function check_set(id,uid,status) {
        if(status == 3){
            layer.prompt({title: '请输入拒绝原因', formType: 2}, function(text, index){
                $.post('__URL__/express_check',{id:id,uid:uid,status:status,deny_cause:text},function () {
                    window.location.reload();
                })
            });
        }else{
            $.post('__URL__/express_check',{id:id,uid:uid,status:status},function () {
                window.location.reload();
            });
        }
    }
</script>